# MakeBy: LiuBoyuan
from sqlalchemy import Column, Integer, String

from Sissson import Base


class UserModel(Base):
    __tablename__ = "user"
    id = Column(Integer, primary_key=True, autoincrement=True, index=True, default=0)
    username = Column(String(20, collation='utf8_bin'), nullable=False, )
    password = Column(String(20, collation='utf8_bin'), nullable=False, )
    sign = Column(String(25, collation='utf8_bin'), default="", )
    headimage = Column(String(100, collation='utf8_bin'), default="123123headimage.jpeg", )
    userinit = Column(Integer, default=0)
    user_top_image = Column(String(100, collation='utf8_bin'), default="default.jpeg")
    offset_top = Column(Integer, default=0)
